﻿<%@ Page Language="C#" MasterPageFile="~/GUIMaster.Master" AutoEventWireup="true"
    CodeBehind="SetFeedback.aspx.cs" Inherits="TripLOA.GUI.secure.SetFeedback" Culture="Auto"
    meta:resourcekey="PageResource1" UICulture="auto" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <link href="../master/resourcesNew/rating.css" rel="stylesheet" type="text/css" />
</asp:Content>
    <asp:Content ID="Content2" ContentPlaceHolderID="ContentHomePage" runat="server">
    <h1><asp:Label ID="text_set_feedback" runat="server" Text="Lascia i feedback" meta:resourcekey="lbl_title"></asp:Label></h1>
    <div id="content_set_feedback">
    
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <asp:UpdateProgress ID="UpdateProgress1" runat="server">
                    <ProgressTemplate>
                    <div id="loader_friends">
                        <img alt="Loading please wait" src="../master/resourcesNew/img/loader.gif" />
                           <asp:Label ID="lbl_loader" runat="server" CssClass="lbl_strong" meta:resourcekey="lbl_loader"></asp:Label></div>
                        </ProgressTemplate>
                    
                </asp:UpdateProgress>
            <div id="content_main_feedback" runat="server">
                <div id="header_content_result_trips"></div>
                <div class="line_content_result_trips">
                <asp:GridView ID="GridViewTrips" runat="server" DataKeyNames="ID"
                    AutoGenerateColumns="False" Height="10px" GridLines="None" meta:resourcekey="GridViewTripsResource1" OnSelectedIndexChanging="GridViewTrips_SelectedIndexChanging" CellPadding="5" CellSpacing="2">
                    <Columns>
                        <asp:BoundField DataField="DepartureDate" HeaderText="Data di Partenza" meta:resourcekey="BoundFieldResourceDepartureDate" HeaderStyle-CssClass="TitleSetFeedback" />
                        <asp:BoundField DataField="OriginCity" HeaderText="Partenza" meta:resourcekey="BoundFieldResourceOriginCity" HeaderStyle-CssClass="TitleSetFeedback" />
                        <asp:BoundField DataField="DestinationCity" HeaderText="Arrivo" meta:resourcekey="BoundFieldResourceDestinationCity" HeaderStyle-CssClass="TitleSetFeedback" />
                        <asp:CommandField CausesValidation="false" ShowSelectButton="True" SelectText="Visualizza Utenti"  meta:resourcekey="hyperFeedResource" />
                    </Columns>
                </asp:GridView>
            </div>
            <div id="footer_content_result_trips"></div>
            </div>
            <div id="content_feedback" runat="server" visible="False">
                <br />
                <asp:Image  ID="img_feed" runat="server" ImageUrl="~/master/resourcesNew/img/set_feedback.png" />
                <asp:Label ID="text" runat="server"  CssClass="label_title" Text="Utenti in attesa del tuo feedback:" meta:resourcekey="lbl_user" />
                <asp:GridView ID="GridViewFeed" runat="server"
                    AutoGenerateColumns="False" DataKeyNames="SenderID,ReceiverID,TripID,FeedbackType,ReceiverUsername,TripDepartureDate,TripStartCity,TripDestinationCity"
                    OnSelectedIndexChanging="GridViewFeed_SelectedIndexChanging" 
                    GridLines="None" meta:resourcekey="GridViewFeedResource" CellSpacing="2" CellPadding="5">
                    <Columns>
                        <asp:BoundField DataField="ReceiverUsername" meta:resourcekey="BoundFieldResourceReceiverUsername" />
                        <asp:CommandField CausesValidation="False" ShowSelectButton="True" SelectText="Lascia feedback"
                            meta:resourcekey="CommandFieldResourceGiveFeedback" />
                    </Columns>
                </asp:GridView>
            </div>
            
            <div id="divSendFeedback" runat="server">
                <asp:Table ID="tblFeed" runat="server" Visible="false" CellSpacing="2" CellPadding="5">
                    <asp:TableRow runat="server">
                        <asp:TableCell runat="server">
                            <asp:Label ID="lblUser" runat="server" meta:resourcekey="lblUserResource" CssClass="TitleSetFeedback"></asp:Label>
                        </asp:TableCell>
                        <asp:TableCell runat="server">
                            <asp:Label ID="lblReceiverUsername" runat="server" ></asp:Label>
                        </asp:TableCell>
                    </asp:TableRow>
                    <asp:TableRow runat="server">
                        <asp:TableCell runat="server" >
                            <asp:Label ID="lblDate" runat="server" meta:resourcekey="lblDateResource" CssClass="TitleSetFeedback"></asp:Label>
                        </asp:TableCell>
                        <asp:TableCell runat="server" >
                            <asp:Label ID="lblTripDepartureDate" runat="server" ></asp:Label>
                        </asp:TableCell>
                    </asp:TableRow>
                    <asp:TableRow runat="server" >
                        <asp:TableCell runat="server" >
                            <asp:Label ID="lblStart" runat="server" meta:resourcekey="lblStartResource" CssClass="TitleSetFeedback"></asp:Label>
                        </asp:TableCell>
                        <asp:TableCell runat="server" >
                            <asp:Label ID="lblTripStartCity" runat="server" ></asp:Label>
                        </asp:TableCell>
                    </asp:TableRow>
                    <asp:TableRow runat="server" >
                        <asp:TableCell runat="server" >
                            <asp:Label ID="lblDestination" runat="server" meta:resourcekey="lblDestinationResource" CssClass="TitleSetFeedback" ></asp:Label>
                        </asp:TableCell>
                        <asp:TableCell runat="server" >
                            <asp:Label ID="lblTripDestinationCity" runat="server" ></asp:Label>
                        </asp:TableCell>
                    </asp:TableRow>
                    <asp:TableRow runat="server" >
                        <asp:TableCell runat="server" >
                            <asp:Label ID="lblGeneral" runat="server" meta:resourcekey="lblGeneralResource" CssClass="TitleSetFeedback"></asp:Label>
                        </asp:TableCell>
                        <asp:TableCell runat="server" >
                            <cc1:Rating ID="ratingGeneral" runat="server" MaxRating="10" StarCssClass="ratingStar"
                                WaitingStarCssClass="savedRatingStar" FilledStarCssClass="filledRatingStarFeedbackPage"
                                EmptyStarCssClass="emptyRatingStarFeedbackPage" Direction="LeftToRight" HorizontalAlign="Center"
                                BehaviorID="ratingGeneral_RatingExtender" CurrentRating="6" meta:resourcekey="ratingGeneralResource">
                            </cc1:Rating>
                        </asp:TableCell>
                    </asp:TableRow>
                    <asp:TableRow runat="server" >
                        <asp:TableCell runat="server" >
                            <asp:Label ID="lblPunctuality" runat="server" meta:resourcekey="lblPunctualityResource" CssClass="TitleSetFeedback"></asp:Label>
                        </asp:TableCell>
                        <asp:TableCell runat="server" >
                            <cc1:Rating ID="RatingPunctuality" runat="server" MaxRating="10" StarCssClass="ratingStar"
                                WaitingStarCssClass="savedRatingStar" FilledStarCssClass="filledRatingStarFeedbackPage"
                                EmptyStarCssClass="emptyRatingStarFeedbackPage" Direction="LeftToRight" HorizontalAlign="Center"
                                BehaviorID="RatingPunctuality_RatingExtender" CurrentRating="6" meta:resourcekey="RatingPunctualityResource">
                            </cc1:Rating>
                        </asp:TableCell>
                    </asp:TableRow>
                    <asp:TableRow runat="server">
                        <asp:TableCell runat="server" >
                            <asp:Label ID="lblReliability" runat="server" meta:resourcekey="lblReliabilityResource" CssClass="TitleSetFeedback"></asp:Label>
                        </asp:TableCell>
                        <asp:TableCell runat="server" >
                            <cc1:Rating ID="RatingReliability" runat="server" MaxRating="10" StarCssClass="ratingStar"
                                WaitingStarCssClass="savedRatingStar" FilledStarCssClass="filledRatingStarFeedbackPage"
                                EmptyStarCssClass="emptyRatingStarFeedbackPage" Direction="LeftToRight" HorizontalAlign="Center"
                                BehaviorID="RatingReliability_RatingExtender" CurrentRating="6" meta:resourcekey="RatingReliabilityResource">
                            </cc1:Rating>
                        </asp:TableCell>
                    </asp:TableRow>
                    <asp:TableRow runat="server">
                        <asp:TableCell runat="server">
                            <asp:Label ID="lblCourtesy" runat="server" meta:resourcekey="lblCourtesyResource" CssClass="TitleSetFeedback"></asp:Label>
                        </asp:TableCell>
                        <asp:TableCell runat="server" >
                            <cc1:Rating ID="RatingCourtesy" runat="server" MaxRating="10" StarCssClass="ratingStar"
                                WaitingStarCssClass="savedRatingStar" FilledStarCssClass="filledRatingStarFeedbackPage"
                                EmptyStarCssClass="emptyRatingStarFeedbackPage" Direction="LeftToRight" HorizontalAlign="Center"
                                BehaviorID="RatingCourtesy_RatingExtender" CurrentRating="6" meta:resourcekey="RatingCourtesyResource">
                            </cc1:Rating>
                        </asp:TableCell>
                    </asp:TableRow>
                    <asp:TableRow runat="server">
                        <asp:TableCell runat="server">
                            <asp:Label ID="lblWasPresent" runat="server" meta:resourcekey="lblWasPresentResources" CssClass="TitleSetFeedback"></asp:Label>
                        </asp:TableCell>
                        <asp:TableCell runat="server">
                            <asp:RadioButtonList ID="RadioButtonList1" runat="server" meta:resourcekey="RadioButtonList1Resource1" RepeatDirection="Horizontal">
                                <asp:ListItem Value="true" meta:resourcekey="ListItemResourceTrue" Selected="True"></asp:ListItem>
                                <asp:ListItem Value="false" meta:resourcekey="ListItemResourceFalse"></asp:ListItem>
                            </asp:RadioButtonList>
                        </asp:TableCell>
                    </asp:TableRow>
                    <asp:TableRow runat="server">
                        <asp:TableCell runat="server">
                            <asp:Label ID="lblComment" runat="server" Text="Comment" meta:resourcekey="lblCommentResource1" CssClass="TitleSetFeedback"></asp:Label></asp:TableCell>
                        <asp:TableCell runat="server" >
                            <asp:TextBox ID="txtComment" runat="server" TextMode="MultiLine" Columns="30" Rows="5"
                                meta:resourcekey="txtCommentResource1"></asp:TextBox></asp:TableCell>
                    </asp:TableRow>
                    <asp:TableRow runat="server">
                        <asp:TableCell runat="server">
                            <asp:Button ID="btnSendFeed" runat="server" OnClick="btnSendFeed_Click"
                                meta:resourcekey="btnSendFeedResource" CssClass="button_generics" />
                        </asp:TableCell>
                    </asp:TableRow>
                </asp:Table>
            </div>
            <div id="divResult" runat="server" visible="False">
                <asp:Label ID="lblResultFeedback" runat="server" Text="Il feedback è stato lasciato con successo!!"
                    meta:resourcekey="lblResultFeedbackResource"></asp:Label>
                <asp:LinkButton ID="LinkButtonResultFeedBack" Text="Ritorna" runat="server" OnClick="LinkButtonResultFeedBack_Click"
                    meta:resourcekey="LinkButtonResultFeedBackResource"></asp:LinkButton>
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
    </div>
</asp:Content>
